#pragma once

#include <set>
#include <memory>

#include <QVector3D>

#include "CmdHandler3.h"

class DistanceHandler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE DistanceHandler();
	~DistanceHandler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;

protected:
	virtual void output(const QVector3D& pt);

	int m_snapPointFlag;
	int m_pointMask;
	QVector3D m_firstPoint;
};
